home *** CD-ROM | disk | FTP | other *** search
- on MouseClick
- global gNumSpr, gLabel, gSujet0, gSprSel, gLocLabel, gBoutons, gSurvolPrec
- set moncod to word 1 of the name of cast the castNum of sprite gNumSpr
- if moncod <> "afr" then
- set gLabel to "DE:" & moncod
- set gSujet0 to 0
- set gSprSel to 0
- set gLocLabel to "DE:OU mon"
- else
- beep()
- curseur(1)
- gBoutons(relache, gNumSpr)
- set gSurvolPrec to -1
- end if
- end
-
- on mouseDown
- global gBoutons, gNumSpr, gListBtDec, g1erSprLoc
- if rollOver(g1erSprLoc + 4) then
- set gNumSpr to g1erSprLoc + 4
- gBoutons(appuie, gNumSpr)
- else
- if rollOver(g1erSprLoc + 5) then
- set gNumSpr to g1erSprLoc + 5
- gBoutons(appuie, gNumSpr)
- else
- set gNumSpr to 0
- end if
- end if
- end
-
- on mouseUp
- global gBoutons, gNumSpr, g1erSprLoc, gLabel, gSujet0, gSprSel
- curseur(2)
- if rollOver(g1erSprLoc + 4) then
- set monNumSpr to g1erSprLoc + 4
- else
- if rollOver(g1erSprLoc + 5) then
- set monNumSpr to g1erSprLoc + 5
- else
- set moNumSpr to -2
- end if
- end if
- if monNumSpr = gNumSpr then
- MouseClick()
- else
- pass()
- end if
- end
-